﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Snowdreamist.Windows.Document
{
    [Serializable]
    [XmlRoot(ElementName = "documentOverview", Namespace = Utility.Namespace)]
    public class DocumentOverview
    {
        /// <summary>
        /// Document title
        /// </summary>
        [XmlAttribute(AttributeName = "title", Namespace = Utility.Namespace)]
        public string Title { get; set; }
        /// <summary>
        /// Document filename (in package)
        /// </summary>
        [XmlAttribute(AttributeName = "filename", Namespace = Utility.Namespace)]
        public string Filename { get; set; }
        /// <summary>
        /// Child document, used in document collection
        /// ATTENTION:
        ///     Only one of Filename, Children is avaliable
        /// </summary>
        [XmlElement(ElementName = "children", Namespace = Utility.Namespace)]
        public List<DocumentOverview> Children { get; set; }
    }
}
